<?php /* Smarty version Smarty-3.1.19, created on 2017-11-06 11:33:40
         compiled from "D:\phpStudy\WWW\zhxykaoqin\sdk\theme\admin\default\views\shuttle\index.html" */ ?>
<?php /*%%SmartyHeaderCode:3144959ffd814047e99-51695261%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '445a27a844409c8c4d9713b08da2f67f01db7944' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\zhxykaoqin\\sdk\\theme\\admin\\default\\views\\shuttle\\index.html',
      1 => 1508815948,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3144959ffd814047e99-51695261',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'list' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_59ffd814122ac7_87872718',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59ffd814122ac7_87872718')) {function content_59ffd814122ac7_87872718($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="main-content">
<div class="page-content">
  <div class="page-content-area" style="opacity: 0.8;"> <br>
    <div class="page-header">
      <h1> 考勤管理 <small><i class="ace-icon fa fa-angle-double-right"></i> 考勤列表 </small> </h1>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <div class="panel panel-info">
          <div class="panel-heading" onclick="$(this).parent().find('.panel-body').toggle()">筛选</div>
          <div class="panel-body">
            <div class="form-group form-search form-inline">
              <label class="control-label">关键词</label>
              <input id="keywords" name="keywords" value="<?php echo $_GET['keywords'];?>
" type="text"/>
              <button class="btn btn-default btn-sm btn-search"><i class="fa fa-search"></i> 搜索</button>
            </div>
          </div>
        </div>
        <form method="post" class="form-horizontal" role="form" id="submitform" onsubmit="return false">
          <table class="table table-bordered table-hover">
            <thead>
              <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>设备</th>
                <th>卡号</th>
                <th>图片</th>
                <th>时间</th>
              </tr>
            </thead>
            <tbody>
            
            <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_fromtemp = $_smarty_tpl->tpl_vars['list']->value['data']; $_from = $_smarty_tpl->tpl_vars['list']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if($_fromtemp)foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
            <tr>
              <td><input type="checkbox" name="id[]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"/>
                <?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['device_id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['v']->value['iccode'];?>
</td>
              <td><a href="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic'];?>
" target="_blank"><img width="50" height="50" src="<?php echo siteurl();?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['pic'];?>
" /></a></td>
              <td><?php echo formattime($_smarty_tpl->tpl_vars['v']->value['add_time']);?>
</td>
            </tr>
            <?php } ?>
            <tr>
              <td colspan="7"><input type="checkbox" onclick="var ck = this.checked;$('input[name=&quot;id[]&quot;]').each(function(){ this.checked = ck });">
                <a class="btn btn-default btn-delete">删除</a></td>
            </tr>
              </tbody>
            
          </table>
          <table style="width:100%;" class="listpage">
            <tr>
              <td><?php echo showpage($_smarty_tpl->tpl_vars['list']->value['page']);?>
</td>
            </tr>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>
<script>
$(function(){
	$('.btn-delete').click(function(){
		var ckvals = $.selectCK('input[name="id[]"]');
		if(!ckvals){
			tooltipbox.show('请选择要操作的数据');
			return false;
		}
		tooltipbox.confirm('确定永久删除选中的数据？', function(data){
			tooltipbox.show('正在执行操作...');
			$.post('<?php echo siteurl("con=admin/shuttle/delete");?>
', data, function(res){
				if(res.code == 1){
					location.reload();
				}
				tooltipbox.show(res.msg);
			}, 'json').error(function(){
				tooltipbox.show('数据或网络错误');
			});
		}, false, { 'ids': ckvals });
	});
});
</script> 
<?php echo $_smarty_tpl->getSubTemplate ('public/footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 <?php }} ?>
